﻿Public Class frmLogginAdmin
    Public gCancelarLogin As Boolean

    Private Sub frmLogginAdmin_FormClosed(sender As Object, e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
        If gCancelarLogin = True Then
            Me.DialogResult = Windows.Forms.DialogResult.Cancel
        Else
            Me.DialogResult = Windows.Forms.DialogResult.OK

        End If
    End Sub
    Private Sub frmLogginAdmin_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        gCancelarLogin = False
    End Sub

    Private Sub btnCancelar_Click(sender As System.Object, e As System.EventArgs) Handles btnCancelar.Click
        gCancelarLogin = True
        Close()

    End Sub

    Private Sub btnAceptar_Click(sender As System.Object, e As System.EventArgs) Handles btnAceptar.Click
        gCancelarLogin = False
        Close()

    End Sub
End Class